package com.balakitbbs.service;

import org.springframework.beans.factory.annotation.Autowired; 
import org.springframework.stereotype.Service;                 
import com.balakitbbs.page.SearchPageUtil;     
import java.util.*;     
import com.balakitbbs.entity.Bala_collection;
import com.balakitbbs.dao.Bala_collectionDaoIF;
   /**
    * bala_collection Service类
    */ 
@Service
public class Bala_collectionService{
@Autowired
private Bala_collectionDaoIF dao;
	public void addBala_collection(Bala_collection bala_collection){
		dao.addBala_collection(bala_collection);
	}

	public void delBala_collection(String id){
		dao.delBala_collection(id);
	}

	public void delBala_collectionTrue(String id){
		dao.delBala_collectionTrue(id);
	}

	public void updateBala_collection(Bala_collection bala_collection){
		dao.updateBala_collection(bala_collection);
	}

	public Bala_collection selectBala_collectionById(String id){
		return dao.selectBala_collectionByID(id);
	}

	public int selectBala_collectionCount(){
		return dao.selectBala_collectionCount();
	}

	public int selectBala_collectionCountAll(){
		return dao.selectBala_collectionCountAll();
	}

	public List<Bala_collection> selectBala_collectionsByPage(SearchPageUtil spu){
		return dao.selectBala_collectionsByPage(spu);
	}

	public int selectBala_collectionsByPOJOCount(Bala_collection bala_collection){
		return dao.selectBala_collectionsByPOJOCount(bala_collection);
	}

	public List<Bala_collection> selectBala_collectionsByPOJO(Bala_collection bala_collection){
		return dao.selectBala_collectionsByPOJO(bala_collection);
	}

	public List<Bala_collection> selectBala_collectionsByPojoPage(SearchPageUtil spu,Bala_collection bala_collection){
		Map map = new HashMap();
		map.put("spu",spu);
		map.put("pojo",bala_collection);
		return dao.selectBala_collectionsByPojoPage(map);
	}

}

